package org.springblade.modules.dingtalk.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.LinkedList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("nicetuan_dept_sync")
public class DeptSyncOU extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "父id")
	private Long parentId;

	@ApiModelProperty(value = "部门名称")
	private String name;

	@ApiModelProperty(value = "部门id")
	private Long deptId;

	@ApiModelProperty(value = "根节点数量")
	@TableField(exist = false)
	private int hasChildren;

	@ApiModelProperty(value = "子节点详情")
	@TableField(exist = false)
	private List<DeptSyncOU> children;

	@ApiModelProperty(value = "目录地址")
	@TableField(exist = false)
	private LinkedList<String> basePath;

	@ApiModelProperty(value = "描述")
	@TableField(exist = false)
	private String description;

	@TableField(exist = false)
	private String inst;

}
